package models.security.utils;

import framework.utils.ContextUtil;

public class SecurityConstant {

  //是否重新加载资源
    public final static boolean RESOURCE_MODIFY=menuReload();
    
    
    //菜单资源存放的路径
    public final static String RESOURCES_MENUS_DIR="/conf/resources/menus";
    //菜单资源加载时的前缀信息
    public final static String RESOURCE_MENUS_LOAD_PREFIX="resources/menus/";
    //菜单类型资源名称
    public final static String RESOURCE_MENU_TYPE_NAME="MENU";
    //操作资源名称
    public final static String RESOURCE_ACTION_TYPE_NAME="ACTION";
    
    //数据字典相关
    //可用用户
    public final static String DIC_USER_LIST_NAME="userList";
    
    public final static String DIC_ALL_USER_LIST_NAME="allUserList";
    
    public final static String DIC_ROLE_LIST_NAME="roleList";
    
    public final static String SYS_DIC_PREFIX="SYS_";
    public final static String DIC_YAML_PREFIX_NAME="unicall";
    
    
    /**
     * 是否重新加载系统菜单   
     * @return
     */
    public static boolean menuReload(){
        return ContextUtil.getProperty("sys.menu.reload","false").equalsIgnoreCase("true");
    }
    



    
}
